Skip to main content

TRREST_TRANSFORMSAMPLE

Trigger REST and Transformer TRANS samples

Sr. NoService NameDescriptionDetails
1.CSVtoCSVGets CSV data from payload and transform returns data as is.
name,id,city,country
John,111,Pune,India
Will,112,Pune,India
2.CSVtoXMLValidates payload data to be in valid CSV format using XML stylesheet. Converts CSV data from payload to XML format and returns response as is.
name,id,city,country
John,111,Pune,India
3.CSVtoOBJConverts CSV data from payload to Java Object format and returns array of object in response in which each object has a key name.
name,id,city,country
John,111,Pune,India
Will,112,Pune,India
4.CSVtoJSONConverts CSV data from payload to JSON format and returns response as is.
name,id,city,country
John,111,Pune,India
5.XMLtoXMLGets XML data from payload and transform returns data as is.
<ArrayList>
<item>
<name>John</name>
<id>111</id>
<city>Pune</city>
<country>India</country>
</item>
</ArrayList>
6.XMLtoCSVConverts XML data from payload to CSV format and returns response as is.
<ArrayList>
<item>
<name>John</name>
<id>111</id>
<city>Pune</city>
<country>India</country>
</item>
</ArrayList>
7.XMLtoOBJConverts XML data from payload to Java Object format and returns object map in response.
<ArrayList>
<item>
<name>John</name>
<id>111</id>
<city>Pune</city>
<country>India</country>
</item>
</ArrayList>
8.XMLtoJSONValidates payload data to be in valid XML format using XML stylesheet. Converts XML data from payload to JSON format and returns response as is.
<details>
<name>John</name>
<id>111</id>
<city>Pune</city>
<country>India</country>
</details>
9.JSONtoXMLConverts JSON data from payload to XML format and returns response as is.
[
{
"name": "John",
"id": 111,
"city": "Pune",
"country": "India"
},
{
"name": "Will",
"id": 112,
"city": "Pune",
"country": "India"
}
]
10.JSONtoCSVConverts JSON data from payload to CSV format and returns response as is.
[
{
"name": "John",
"id": 111,
"city": "Pune",
"country": "India"
}
]
11.JSONtoOBJValidates payload data to be in valid JSON format using JSON schema. Converts JSON data from payload to Java Object format and returns object with key name in response.
[
{
"name": "John",
"id": 111,
"city": "Pune",
"country": "India"
}
]
12.JSONtoJSONGets JSON data from payload and transform returns data as is.
[
{
"name": "John",
"id": 111,
"city": "Pune",
"country": "India"
},
{
"name": "Will",
"id": 112,
"city": "Pune",
"country": "India"
}
]
13.OBJtoXMLConverts JSON data from payload to Java Object and then the previous Java Object to XML format and returns response as is.
[
{
"name": "John",
"id": 111,
"city": "Pune",
"country": "India"
},
{
"name": "Will",
"id": 112,
"city": "Pune",
"country": "India"
}
]
14.OBJtoCSVConverts JSON data from payload to Java Object and then the previous Java Object to CSV format and returns response as is.
[
{
"name": "John",
"id": 111,
"city": "Pune",
"country": "India"
},
{
"name": "Will",
"id": 112,
"city": "Pune",
"country": "India"
}
]
15.OBJtoOBJReads data from database which returns a java object and transform returns data as is.
[
{
"name": "John",
"id": 111,
"city": "Pune",
"country": "India"
},
{
"name": "Will",
"id": 112,
"city": "Pune",
"country": "India"
}
]
16.OBJtoJSONConverts JSON data from payload to Java Object and then the previous Java Object to JSON format. Returns object which contains id (number), salary (double), isRemoteEmployee (boolean), name (string), original_JSON (json).
{
"name": "John",
"id": 111,
"salary": "50000",
"isRemoteEmployee": "true"
}
17.FLATtoXMLConverts TEXT data from payload to XML format and returns response as is.
ST*       850*0001
BEG*00*SA*000000006637770**20230818*0001307878
18.FLATtoCSVConverts TEXT data from payload to CSV format and returns response as is.
ST*       850*0001
BEG*00*SA*000000006637770**20230818*0001307878
19.FLATtoOBJConverts TEXT data from payload to Java Object format and returns data in JSON format.
ST*       850*0001
BEG*00*SA*000000006637770**20230818*0001307878
20.FLATtoJSONConverts TEXT data from payload to JSON format and returns response as is.
ST*       850*0001
BEG*00*SA*000000006637770**20230818*0001307878
21.FLATtoJSONwithMultipleRangesConverts TEXT data from payload to JSON format with multiple ranges provided which reads line from start of range to end and creates values accordingly.
ST*       850*0001
BEG*00*SA*000000006637770**20230818*0001307878